package cn.edu.uestc.cwdsj.service;

import cn.edu.uestc.cwdsj.dao.IXCodeMapDao;
import cn.edu.uestc.cwdsj.domain.XCodeMap;
import cn.edu.uestc.cwdsj.utils.constant.RoleConstants;
import cn.edu.uestc.framework.auth.annotation.TKRoleRequired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class TestService {
    @Resource
    private IXCodeMapDao xCodeMapDao;

    @TKRoleRequired(roleId = RoleConstants.ROLE_ANY)
    public List<XCodeMap> getXCodeMapList() {
        return xCodeMapDao.getList();
    }

}
